package com.example.aopdemo.controller;

import com.example.aopdemo.annotation.AspectAction;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Package: com.example.aopdemo.controller
 * @ClassName: HelloController
 * @Author: Think
 * @CreateTime: 2021/8/18 9:50
 * @Description:
 */
@RestController
public class HelloController {

    @AspectAction(name = "loglog")
    @GetMapping("/getHello")
    public String getHello(){
        System.out.println("执行getHello!");
        return "hello";
    }

}
